#pragma once


// CCam

class CCam : public CStatic
{
	DECLARE_DYNAMIC(CCam)

public:
	CCam();
	virtual ~CCam();

	int m_brightness;
	int m_contrast;
	void AdjustBrightness(IplImage* srcImage, int bright);

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
};


void callbackCAM(IplImage* image);